package com.highcom.coffeeshop.model;

import java.util.List;

public class Order {
    private String customerName;
    private List<OrderItem> items;
    private double totalPrice;
    private int orderNumber;
    private String estimatedTime;

    public Order(String customerName, List<OrderItem> items, double totalPrice) {
        this.customerName = customerName;
        this.items = items;
        this.totalPrice = totalPrice;
        this.orderNumber = (int)(Math.random() * 10000);
        this.estimatedTime = "5分钟";
    }

    // Getters and Setters
    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    public List<OrderItem> getItems() {
        return items;
    }

    public void setItems(List<OrderItem> items) {
        this.items = items;
    }

    public double getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(double totalPrice) {
        this.totalPrice = totalPrice;
    }

    public int getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(int orderNumber) {
        this.orderNumber = orderNumber;
    }

    public String getEstimatedTime() {
        return estimatedTime;
    }

    public void setEstimatedTime(String estimatedTime) {
        this.estimatedTime = estimatedTime;
    }
}
